// import SceneManager from 'utils/ScenseManager';

// import 'component/panel';
import Integral from 'component/integral.jsx';

import { render, h } from 'esse';

const { Stage, Handler, Sprite } = Laya;

window.h = h;

function App() {
  let stage;
  Laya.Config.isAntialias = true;
  Laya.init(1334, 750, Laya.WebGL);
  stage = Laya.stage;
  stage.scaleMode = Stage.SCALE_FIXED_AUTO;
  stage.alignH = Stage.ALIGN_CENTER;
  stage.alignV = Stage.ALIGN_MIDDLE;
  stage.screenMode = Stage.SCREEN_HORIZONTAL;

  Laya.Stat.show();

  // ScenseManager.loadScense('/integral');
  render(<Integral/>, stage);
}

/*if (module.hot) {
	module.hot.accept([
		'component/panel'
	], ()=> {
		console.log('Accepting the updated module!');
		ScenseManager.relaod();
	});
}*/

window.addEventListener('DOMContentLoaded', App);
